{extend name="public/base" /} {block name="css"}
<link rel="stylesheet" href="__INDEX__/css/add_clothes.css"> 
{/block}
{block name="container"}

<div class="panel-body panel-body-nopadding" style="padding-bottom:50px;">
    <div class="inforMain">

        <div class="title"> <!-- <a  class="btn btn-w-m btn-info" href="{:url('index/shop/pandianList')}">查看盘点记录</a> -->
        &emsp;&emsp;店铺库存盘点</div>
        <span>*请用扫码枪扫成衣对应的条形码*</span>
        <input type="text" id="maBoxs">
    </div>
</div>
{/block} 
{block name="js"}
<script>
        $(function(){
        document.getElementById('maBoxs').focus();

        $('#maBoxs').bind('keydown', function(event) {
            if (event.keyCode == "13") {
                //回车执行查询
                var aa = $('#maBoxs').val();
                //alert(aa);
                $.post('{:url("index/shop/pandian")}', {order: aa}, function(data) {
                    if(data.sus == 1){
                         swal({
                        title: "录入成功",      
                        text: "",
                        type: "success"
                    });
                         window.location.reload();
                        //document.getElementById('maBoxs').value='';
                    }
                });
                
            }
        });
    });
</script>

 {/block}